package com.huc.design.behavior.observer.base;

/**
 * @author huc
 * @version 1.0
 * @note
 * @date 2021/10/8 10:55
 */
public class ObserverTest {
    public static void main(String[] args) {
        Subject teather = new Teacher();
        Observer stu1 = new StudentObserver1();
        Observer stu2 = new StudentObserver2();
        teather.add(stu1);
        teather.add(stu2);
        teather.notifyObserver();
    }
}
